//
//  ProjectConfig.h
//  DHDemo
//
//  Created by 杜豪 on 15/3/19.
//  Copyright (c) 2015年 杜豪. All rights reserved.
//

#import <Foundation/Foundation.h>

#define IN_QuickManHR


#define APPName [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleDisplayName"]

// 苹果市场的appId
#define kSpeakOutAppId (@"95836")
/*融云的APP KEY*/
#define RONGCLOUD_IM_APPKEY  @"qf3d5gbj3uooh"

// 友盟的appId
#define kUMAppKey @"576012a267e58eb8840022af"

// QQ分享相关的信息
#define kQQAppId @"1102158370"
#define kQQAppKey @"pWLo8Jp360GPs2td"

// 微信分享的相关信息
#define kWeixinAppId @"wx43381f614c09e302"
#define kWeixinAppKey @"5607b659bad0ba6a226a613b217b4e4a"


// aliyun key
#define YunAccessKey  @"SX9nVDsfn54Tsl2K"
#define YunSecretKey  @"VoYVvrMZyWBfVG9sBgA2UCqSczJnoL"
#define YunEndPoint  @"http://oss-cn-beijing.aliyuncs.com"

#define YunUserPublicEndPoint @"http://krhrimg.img-cn-beijing.aliyuncs.com/user_image/"
//#define YunAccessKey  @"HYXw0nxJlIPbv5YD"
//#define YunSecretKey  @"S725Zbv44DRgqpdVRZy7ptIgigFXaF"
//#define YunEndPoint  @"http://oss-cn-beijing.aliyuncs.com"

#define KPhoneNumber @"4008606003"

// 不是第一次打开app
#define kIsNotFirstInstallApp                  (@"kIsNotFirstInstallApp")

#define PayKey @"6M4bcf5f1eebb20813647dduzop8b42cf1451919df3010cc37157Z###=="

// 是否不需要统计
//#define NO_MOB_LOG

// 是否打开调试开关
//#define kInDebugMode


//网络请求出错提示(当msg没有信息时提示)
#define NETWORKFAIL @"网络请求出错，请重试"

#pragma mark - Notifications key

// 登陆成功
#define kNotificationUserLoginSuccess (@"kNotificationUserHasLoginSuccess")
// 退出登录
#define kNotificationUserLoggedOut (@"kNotificationUserLoggedOut")


//接口常量
#define BaiDuApiKey @"d66c9429f2fa5bac9a08d4d7f633b39e"

// 双击tabbar的通知
#define kNotificationDidDoublePressTabItem (@"kNotificationDidDoublePressTabItem")

// 单击一个已经选中的tabbar的通知
#define kNotificationDidPressSelectedTabItem (@"kNotificationDidPressSelectedTabItem")

//分页菜单关闭
#define kNotificationShareMenuDidClose (@"kNotificationShareMenuDidClose")

typedef enum{
    kBottomButtonNorma = 0,     //按钮未选中状态
    kBottomButtonSelected       //按钮选中状态
}kBottomButtonState;            //按钮状态

typedef enum{
    kScheduleStateOwned = 0,        //我的
    kScheduleStateWait,             //等待处理的
    kScheduleStateAccepted,         //我接受的
    kScheduleStateRejected          //已拒绝的
}kScheduleState;            //日程状态
typedef enum{
    kScheduleLevelHigh = 0,             //高
    kScheduleLevelMiddle,           //中
    kScheduleLevelLow               //低
}kScheduleLevel;//日程优先级
//审批状态
typedef NS_ENUM(NSInteger, ApprovalStatusType) {
    /*等待审批*/
    ApprovalStatusWait,
    /*审批中*/
    ApprovalStatusDoing,
    /*通过 同意*/
    ApprovalStatusAgree,
    /*拒绝*/
    ApprovalStatusReject
};

#define LeftMenuWidth viewWidth()/4.0f*3.0f
#define RightMenuWidth viewWidth()/150.0f*77.0f

#define kAllViewMargin 15.0f        //几乎所有view 的左右边距
#define kCornerRadius 5.0f          //所有空间的圆角
#define kBorderWidth 1.0f           //所有边框的线的粗细

#define kCalendarMargin 30.0f       //日程中 日历两边的留白大小

#define  kCalendarItemWidth (viewWidth() - 60.0f)/7     //日程中 日历中一个条目的宽度

#define kScaling750 viewWidth()/375.0f
//#define kScaling750 viewWidth()/375.0f

#define kMaxUploadFile 9        //最大上传附件数量
#define kMaxShowAtPerson  19    //最大显示@人的个数
#define UploadCachePath @"UploadCache"

#define LeftMenuLastSelectChannel @"LastSelectChannelID"

#define LeftDidChangeChannel @"LeftMenuDidChangeChannelNotification"
/*融云新消息通知*/
#define ReceivedNewMessageNotification @"ReceivedMessageReceived"
/*退出群组  退出私聊 */
#define kNotificationRefreshChannel  @"NotiShouldeRefreshMessageMianVC"
/*刷新群组信息通知*/
//#define kNotificationRefreshChannel  @"NotiShouldeRefreshMessageMianVC"
/*账号在其他设备登录>被踢下线*/
#define kNotificationOtherDeviceLogin @"KICKEDOFFLINEBYOTHERCLIENT"
//消息 分页的条数
#define kMessagePageSize 30

@interface ProjectConfig : NSObject

@end
